package com.liusha.quicksand;

import com.liusha.quicksand.interceptor.CheckUserInterceptor;
import com.liusha.quicksand.util.DateUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;

//(exclude = DataSourceAutoConfiguration.class) //新加 dddd

@SpringBootApplication
public class QuicksandApplication {

    public static void main(String[] args) {
        SpringApplication.run(QuicksandApplication.class, args);
    }

    @Bean
    public CheckUserInterceptor checkUserInterceptor(){
        return new CheckUserInterceptor();
    }

    @Bean
    public DateUtils utils(){
        return new DateUtils();
    }
}
